$OpenBSD: patch-pjmedia_src_pjmedia_stream_c,v 1.4 2015/01/11 17:24:06 dcoppa Exp $
--- pjmedia/src/pjmedia/stream.c.orig	Mon Apr 14 03:14:11 2014
+++ pjmedia/src/pjmedia/stream.c	Thu Jan  8 08:02:08 2015
@@ -2515,6 +2515,7 @@ PJ_DEF(pj_status_t) pjmedia_stream_destroy( pjmedia_st
     /* Free mutex */
 
     if (stream->jb_mutex) {
+	pj_mutex_unlock(stream->jb_mutex);
 	pj_mutex_destroy(stream->jb_mutex);
 	stream->jb_mutex = NULL;
     }
